<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>列表框：多选</title>
        <script src="../js/vue.js"></script>
    </head>
<body>
  <div id="app">

        <select v-model="fruits" multiple>
            <option value="苹果">苹果</option>
            <option value="梨子">梨子</option>
            <option value="葡萄">葡萄</option>
            <option value="西瓜">西瓜</option>
        </select>
        <p>您想吃的水果是:{{fruits}}</p>
  
  </div>
<br>
  <script>
    let app = new Vue({
      el:"#app",
      data:{ 
        fruits:[]
      }
    })
  </script>
</body>
</html>
    


       